import http from "@/utils/http";
// 获取积分详情
export const getPointList = (params) => {
  return http.get("/auth/user/point/page", params);
};
// 获取积分兑换商品列表
export const getPointGoodsList = (params) => {
  return http.get("/auth/point/list", params);
};
// 积分兑换商品
export const getPointGoods = (id) => {
  return http.get(`/auth/point/get/${id}`);
};
// 积分权益
export const getPointEquity = () => {
  return http.get("/auth/user/point/equity");
};
// 领取会员奖励
export const getPointReward = (level) => {
  return http.post(`/auth/user/point/${level}`);
};
